/**
 * 前端本地管理的需要获取到动态路由后才能实例化的路由
 * Layout 路由是系统的框架层，其本身就是登录后才能显示的，所以该路由可以在登录后再实例化，其子路由均需在其实例化后，才能实例化
 * 路由规则：
 * 1. 类型为菜单时，也可以有子级菜单类型数据，但该数据需设置 visible: false，即不在侧边栏展示，
 *    例字典管理-字典数据，字典管理是菜单型数据，字典数据也是，但字典数据不在侧边栏展示。
 *    作此设置是为了保证字典管理是以页节点形式渲染，而非目录节点渲染，导致无法点击
 * 2. 目录类型菜单的子级是菜单类型时，如需设置 visible: false，其排序应保证不在第一位，确保目录层的重定向是可见页面，而非不可见页面
 *    如子级只有一条数据，且需设置 visible: false，则不受上述约束影响
 **/
export const localRouter = [
  {
    id: 100000,
    parentId: 0,
    title: '开发',
    icon: 'ri:apps-2-ai-fill',
    component: '',
    path: '',
    visible: true,
    sort: 100000,
    name: '',
    permit: '',
    transitionName: '',
    keepAlive: false,
    isFixed: false,
    type: 1,
    badge: '',
    dot: false,
    status: 0,
    remark: '',
    isDev: true
  },
  {
    id: 100001,
    parentId: 100000,
    title: '图表',
    icon: 'ri:bar-chart-box-ai-fill',
    component: '/Develop/Chart',
    path: '/Develop/Chart',
    visible: true,
    sort: 0,
    name: 'DevelopChart',
    permit: '',
    transitionName: '',
    keepAlive: false,
    isFixed: false,
    type: 2,
    badge: '',
    dot: false,
    status: 0,
    remark: '',
    isDev: true
  },
  {
    id: 100002,
    parentId: 100000,
    title: '接口文档',
    icon: 'ri:guide-fill',
    component: '/Develop/ApiDoc',
    path: '/Develop/ApiDoc',
    visible: true,
    sort: 0,
    name: 'DevelopApiDoc',
    permit: '',
    transitionName: '',
    keepAlive: false,
    isFixed: false,
    type: 2,
    badge: '',
    dot: false,
    status: 0,
    remark: '',
    isDev: true
  },
  {
    id: 100003,
    parentId: 100000,
    title: 'WebSocket 测试',
    icon: 'ri:base-station-fill',
    component: '/Develop/Websocket',
    path: '/Develop/Websocket',
    visible: true,
    sort: 0,
    name: 'DevelopWebsocket',
    permit: '',
    transitionName: '',
    keepAlive: false,
    isFixed: false,
    type: 2,
    badge: '',
    dot: false,
    status: 0,
    remark: '',
    isDev: true
  },
  {
    id: 100004,
    parentId: 100000,
    title: '日历',
    icon: 'ri:calendar-fill',
    component: '/Develop/Calendar',
    path: '/Develop/Calendar',
    visible: true,
    sort: 0,
    name: 'DevelopCalendar',
    permit: '',
    transitionName: '',
    keepAlive: false,
    isFixed: false,
    type: 2,
    badge: '',
    dot: false,
    status: 0,
    remark: '',
    isDev: true
  },
  {
    id: 100005,
    parentId: 100000,
    title: '图标',
    icon: 'ri:remixicon-fill',
    component: '/Develop/IconList',
    path: '/Develop/IconList',
    visible: true,
    sort: 0,
    name: 'DevelopIconList',
    permit: '',
    transitionName: '',
    keepAlive: false,
    isFixed: false,
    type: 2,
    badge: '',
    dot: false,
    status: 0,
    remark: '',
    isDev: true
  },
  {
    id: 100006,
    parentId: 100000,
    title: '上传文件',
    icon: 'ri:upload-cloud-2-fill',
    component: '/Develop/Upload',
    path: '/Develop/Upload',
    visible: true,
    sort: 0,
    name: 'DevelopUpload',
    permit: '',
    transitionName: '',
    keepAlive: false,
    isFixed: false,
    type: 2,
    badge: '',
    dot: false,
    status: 0,
    remark: '',
    isDev: true
  },
  {
    id: 200000,
    parentId: 0,
    title: '个人中心',
    icon: 'ep:user-filled',
    component: '/Profile',
    path: '/Profile',
    visible: false,
    sort: 200000,
    name: 'Profile',
    permit: '',
    transitionName: '',
    keepAlive: false,
    isFixed: false,
    type: 2,
    badge: '',
    dot: false,
    status: 0,
    remark: '',
    isDev: false
  }
]
